﻿
// colorDlg.h: 头文件
//

#pragma once
#include "CaptureScreen.h"
#include "mstring.h"

// CcolorDlg 对话框
class CcolorDlg : public CDialogEx
{
// 构造
public:
	CcolorDlg(CWnd* pParent = nullptr);	// 标准构造函数

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_COLOR_DIALOG };
#endif

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持


// 实现
protected:
	HICON m_hIcon;

	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	afx_msg void OnBnClickedOk1();
	
	CStatic* img;
	afx_msg void OnStnClickedImg();
	void CaptureScreen1(int x, int y);
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	CEdit edit1;
	afx_msg void OnEnChangeEdit1();
	afx_msg void OnCbnSelchangeCombo1();
	void WriteLog(std::string str);
	CComboBox cb1;

	list<WinInfo> dlglist1;
	HWND hWnd;
	CEdit edit4;
	CEdit edit5;
	HACCEL m_hAccel;
	afx_msg void OnBnClickedTest1();
	afx_msg void OnBnClickedTest2();
	int test1();
	//得到图片上矩阵
	int getmax();
	afx_msg void OnF1();
	afx_msg void OnF2();
	LRESULT OnHotKey(WPARAM wParam, LPARAM lParam);
	void OnClose();
};
void ScreenCapture(CStatic* img, int x, int y);
